<?php 
$this->layout = '~/views/shared/_defaultLayout.php';
?>
<div class="block bgWhite">
    <div class="content">
                <script type="text/javascript">
            //     function validateForm() {
            //     var x = document.forms["myForm"].value;
            //     if (x==null || x=="") {
            //         $("p").toggle();
            //         return false;
            //     }
            // }
            </script>
           
        <form role="form" method="post" action="signup" name="myForm" onsubmit="return validateForm()">
        <p class="ptag">All Feilds are requried</p>
                    <!-- <h2>Please Sign Up <small>It's free and always will be.</small></h2> -->
                    <hr class="colorgraph">
                    <div class="row">
                        <div class="col-xs-12 col-sm-6 col-md-6">
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">Username</label>
                                <input type="text" name="username" id="username" class="form-control input-lg" placeholder="Username" value="<?php echo (isset($_POST['username'])?$_POST['username']:'') ?>" tabindex="1" />
                                <?php echo $data['username']; ?>
                            </div>
                        </div>
                    </div>
                     <div class="row">
                        <div class="col-xs-12 col-sm-6 col-md-6">
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">Password</label>
                                <input type="password" name="password" id="password" class="form-control input-lg" placeholder="password" tabindex="2" />
                                <?php echo $data['password']; ?>
                            </div>
                        </div>

                    </div>
                    <div class="row">
                        <div class="col-xs-12 col-sm-6 col-md-6">
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">Email</label>
                                <input type="text" name="email" id="email" class="form-control input-lg" placeholder="Email" tabindex="1" value="<?php echo (isset($_POST['email'])?$_POST['email']:'') ?>" />
                                <?php echo $data['email']; ?>
                            </div>
                        </div>
                        
                    </div>
                    <div class="row">
                        <div class="col-xs-12 col-md-6">
                            <input type="submit" name="usersubmit" class="btn btn-success" value="Create"  />
                        </div>
                    </div>
                </form>

    </div>
</div>